package org.javaboy.demo;

import org.javaboy.demo.controller.UserController;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DemoXMl {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
        UserController uc = ctx.getBean(UserController.class);
        System.out.println("uc.sayHello() = " + uc.sayHello());
    }
}
